import mock_data from "./datas.js";

const service = function(config) {
	return new Promise((resolve, reject) => {
		let response = {
			data: {
				code: 200,
				msg: "成功",
				data: mock_data[config.name]
			}
		}
		resolve(response);
	});
}
export default {
	service
};